package com.neuedu.studentmanage.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Attendance {

	private Integer checkId;
	private Student student;
	private Classroom classroom;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date times;

	private Subject subject;

	public Attendance() {
		super();
	}

	public Attendance(Integer checkId) {
		super();
		this.checkId = checkId;
	}

	public Attendance(Integer checkId, Student student, Classroom classroom, Date times, Subject subject) {
		super();
		this.checkId = checkId;
		this.student = student;
		this.classroom = classroom;
		this.times = times;
		this.subject = subject;
	}

	public Integer getCheckId() {
		return checkId;
	}

	public void setCheckId(Integer checkId) {
		this.checkId = checkId;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Classroom getClassroom() {
		return classroom;
	}

	public void setClassroom(Classroom classroom) {
		this.classroom = classroom;
	}

	public Date getTimes() {
		return times;
	}

	public void setTimes(Date times) {
		this.times = times;
	}

	public Subject getSubject() {
		return subject;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	@Override
	public String toString() {
		return "Attendance [checkId=" + checkId + ", student=" + student + ", classroom=" + classroom + ", times="
				+ times + ", subject=" + subject + "]";
	}

}
